package com.han.lianxi.bean;

import struct.StructClass;
import struct.StructField;

@StructClass
public class Head {

    @StructField(order = 0)
    private short flag1; //2

    private short flagLable;

    @StructField(order = 1)
    private byte flag2;  //1

    @StructField(order = 2)
    private int flag3;   //4

    @StructField(order = 3)
    private long flag4; //8

    @StructField(order = 4)
    private byte[] flag5 = new byte[16];  //16

    @StructField(order = 5)
    private byte flag6;

//    @StructField(order = 6)
    private Type1 flagObj;

    public Type1 getFlagObj() {
        return flagObj;
    }

    public void setFlagObj(Type1 flagObj) {
        this.flagObj = flagObj;
    }

    public byte getFlag6() {
        return flag6;
    }

    public void setFlag6(byte flag6) {
        this.flag6 = flag6;
    }

    public Head(){}

    public short getFlag1() {
        return flag1;
    }

    public void setFlag1(short flag1) {
        this.flag1 = flag1;
    }

    public short getFlagLable() {
        return flagLable;
    }

    public void setFlagLable(short flagLable) {
        this.flagLable = flagLable;
    }

    public byte getFlag2() {
        return flag2;
    }

    public void setFlag2(byte flag2) {
        this.flag2 = flag2;
    }

    public int getFlag3() {
        return flag3;
    }

    public void setFlag3(int flag3) {
        this.flag3 = flag3;
    }

    public long getFlag4() {
        return flag4;
    }

    public void setFlag4(long flag4) {
        this.flag4 = flag4;
    }

    public byte[] getFlag5() {
        return flag5;
    }

    public void setFlag5(byte[] flag5) {
        this.flag5 = flag5;
    }

}
